package com.study.spring.aop;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        // 创建springIOC的实例
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("application.xml");
        // 从IOC容器中获取Bean的实例
        ArithmeticI arithmeticI = ctx.getBean(ArithmeticI.class);

        int result = 0;
        /*result = arithmeticI.addition(1, 3);

        result = arithmeticI.subtraction(1, 3);

        result = arithmeticI.multiplication(1, 3);*/

        result = arithmeticI.division(4, 2);



    }
}
